﻿using Model.Enums;
using SanZhan.Models.Team;

namespace SanZhan.Models.User
{
    public class UserTeam : TeamBase
    {
        public UserTeam()
        {
            ID = 0;
        }

        public TeamSide TeamSide { get; set; }
        public string Wujiangs
        {
            get
            {
                string zhujiang = "未上阵";
                string fujiang1 = "未上阵";
                string fujiang2 = "未上阵";
                if (ZhuJiang.ID > 0)
                {
                    zhujiang = ZhuJiang.heroBase.Name;
                }
                if (FuJiang1.ID > 0)
                {
                    fujiang1 = FuJiang1.heroBase.Name;
                }
                if (FuJiang2.ID > 0)
                {
                    fujiang2 = FuJiang2.heroBase.Name;
                }
                return $"{ZhuJiang} - {fujiang1} - {fujiang2}";
            }
        }
    }
}
